package com.noodles.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.noodles.mall.entity.Role;
import com.noodles.mall.entity.User;
import com.noodles.mall.entity.UserRole;

import java.util.List;

/** 用户-角色 **/
public interface UserRoleService extends IService<UserRole> {
    /** 添加 **/
    boolean insert(Integer userId,Integer roleId);

    /** 查询列表: userId **/
    List<Role> selectList(Integer userId);
}
